﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using BUS;
using DAO;

namespace FDeal.WUC
{
    public partial class WUC_DoanhNghiep : System.Web.UI.UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                LoadThongTin();
            }
        }



        public void LoadThongTin()
        {
            string idDN = ((THONGTINTAIKHOAN)(Session["nguoiDung"])).IDTAIKHOAN;

            TaiKhoanDoanhNghiepBUS dn = new TaiKhoanDoanhNghiepBUS();
            TAIKHOANDOANHNGHIEP tkdn = dn.ChiTiet(idDN);

            lbl_Ten.Text = "Doanh Nghiệp: " + tkdn.TENDN;
            lbl_MoTa.Text = "Mô tả: " + tkdn.MOTA;
            lbl_SDT.Text = "Số điện thoại: " + tkdn.SDT;
            lbl_DiaChi.Text = "Địa chỉ: " + tkdn.DIACHI;
        }
    }
}